import SvgIcon from '../SvgIcon.vue'
import Beadcrumb from '../breadcrumb.vue'
import SelectTrait from '../selectTrait.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import type { App, Component } from 'vue'
const Component: { [name: string]: Component } = {
  SvgIcon,
  Beadcrumb,
  SelectTrait,
}
export default {
  install(app: App) {
    Object.keys(Component).forEach((key: string) => {
      app.component(key, Component[key])
    })
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
